package com.lysj.print.print.vo;

import lombok.Data;

import javax.persistence.Column;
import java.math.BigDecimal;

/**
 * @ Author ：drj.
 * @ Date  ：Created in 10:34 2019/3/21
 * @ Description:打印轮训数据vo
 **/
@Data
public class PrinterRotationVo {

    private String name; //菜品名称

    private Integer amount;//菜品数量

    @Column(columnDefinition = "decimal(10,2)")
    private BigDecimal unitPrice;//单价

    @Column(columnDefinition = "decimal(10,2)")
    private BigDecimal subtotal;//小计

    public PrinterRotationVo() {
    }

    public PrinterRotationVo(String name, Integer amount, BigDecimal unitPrice, BigDecimal subtotal) {
        this.name = name;
        this.amount = amount;
        this.unitPrice = unitPrice;
        this.subtotal = subtotal;
    }
}
